package com.ghca.myinfo3;

import com.ghca.myinfo3.process.service.IApplyService;
import com.ghca.myinfo3.project.entity.Project;
import com.ghca.myinfo3.project.service.IProjectService;
import com.ghca.myinfo3.system.entity.Department;
import com.ghca.myinfo3.system.entity.Permission;
import com.ghca.myinfo3.system.mapper.PermissionMapper;
import com.ghca.myinfo3.system.repository.PermissionRepository;
import com.ghca.myinfo3.system.service.IDepartmentService;
import org.activiti.engine.RuntimeService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.List;

/**
 * Hello world!
 */
@SpringBootApplication
@EnableScheduling
@EnableAsync
public class App {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
        IDepartmentService bean = context.getBean(IDepartmentService.class);
        List<Department> list = bean.list(null);
    }




}
